package org.fordprefect.struts2jscalendarplugin.views.velocity.components;

import org.apache.struts2.components.Component;
import org.fordprefect.struts2jscalendarplugin.components.JSCalendar;
import com.opensymphony.xwork2.util.ValueStack;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by IntelliJ IDEA.
 * User: milmber
 * Date: Aug 7, 2007
 * Time: 10:26:18 AM
 * To change this template use File | Settings | File Templates.
 */
public class JSCalendarDirective extends JSCalendarAbstractDirective {
    
    public String getBeanName() {
        return "jscalendar";
    }

    protected Component getBean(ValueStack valueStack, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
        return new JSCalendar(valueStack, httpServletRequest, httpServletResponse);
    }
}
